import * as http from '@/utils/http'

// 排行榜
export const rankingList = (params = {}) => http.requset(params, { method: 'get', url: '/play/index/rankingList' })
// 我的排名
export const myRanking = (params = {}) => http.requset(params, { method: 'get', url: '/play/index/myRanking' })

// 分享人列表
export const recordList = (params = {}) => http.requset(params, { method: 'get', url: '/play/share/recordList' })
// 开启分享领劵
export const updateOpenShare = (params = {}) => http.requset(params, { method: 'get', url: '/play/user/updateOpenShare' })
// 领劵分享劵
export const receiveExchangeCoupon = (params = {}) => http.requset(params, { method: 'get', url: '/play/share/receiveExchangeCoupon' })

// 奖品列表
export const productList = (params = {}) => http.requset(params, { method: 'get', url: '/play/index/productList' })
// 兑换奖品
export const userExchange = (params = {}) => http.requset(params, { method: 'post', url: '/play/user/userExchange' })
// 我的奖品
export const myPrize = (params = {}) => http.requset(params, { method: 'get', url: '/play/user/myPrize' })

// 首页通知  *********************************************************
export const getNotices = (params = {}) => http.requset(params, { method: 'post', url: '/play/index/getNotices' })

// 签到 *********************************************************
// 签到 列表 play/user/signUser
export const getUserSign = (params = {}) => http.requset(params, { method: 'get', url: '/play/sign/getUserSign' })

// 签到 play/user/signUser
export const saveUserSign = (params = {}) => http.requset(params, { method: 'get', url: '/play/sign/saveUserSign' })

// 兑换奖品记录  *********************************************************
// 兑换奖品记录 play/index/exchangeList
export const exchangeList = (params = {}) => http.requset(params, { method: 'post', url: '/play/index/exchangeList' })

// 答题 *********************************************************

// 答题库 play/index/answerBankList --答题文档
export const answerBankList = (params = {}) => http.requset(params, { method: 'get', url: '/play/index/answerBankList' })

// 答题库 play/index/answerResult --答题结果
export const answerResult = (params = {}) => http.requset(params, { method: 'post', url: '/play/index/answerResult' })

// 保存formId
export const saveFormId = (params = {}) => http.requset(params, { method: 'post', url: '/play/user/saveFormId' })
